<?phpnamespace app\hook;class orderconfirm{    public static function after($params = [])    {        $order = $params['order'];        $item = $params['item'];        // 更新收货时间        $order->ext = json_encode($order->setExt($order, ['confirm_time' => time()]));      // 收货时间        $order->status = 2;        $order->save();        // 根据代理结算event初始化结算任务        \Hook::emit('commission_settle', ['order' => $order, 'item' => $item, 'event' => 'confirm']);        return $order;    }}